import http from '@/config/axios';

// 驾驶舱
const cockpitUrl = '/v1/pc/api/dashboard';
// 根据人员ID获取驾驶舱种类
export const queryCate = params =>
    http({
        url: `${cockpitUrl}/query`,
        method: 'get',
        params
    });
// 根据驾驶舱获取二级选项
export const queryDetailList = params =>
    http({
        url: `${cockpitUrl}/queryDetailList`,
        method: 'get',
        params
    });
// 导出驾驶舱数据
export const downloadCockpit = params =>
    http.get(`${cockpitUrl}/export`, { params });

// 模板维护情况
export const getTemplateMaintenance = params =>
    http({
        url: '/v1/pc/api/dashboard/getTemplateMaintenance',
        method: 'get',
        params
    });

// 分页条件查询
export const getPagingQuery = params =>
    http({
        url: '/v1/pc/api/dashboard/getPagingQuery',
        method: 'get',
        params
    });

// 查询执行进度分析列表-xcz
export const getPointInfoList = params =>
    http({
        url: '/v1/pc/api/dashboard/getPointInfoList',
        method: 'get',
        params
    });
// 总览驾驶舱-查询执行进度分析统计图-xcz
export const getPointInfoEchart = params =>
    http({
        url: '/v1/pc/api/dashboard/getPointInfoEchart',
        method: 'get',
        params
    });

// 总览驾驶舱-查询执行进度分析列表导出-xcz
export const getPointInfoListExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getPointInfoListExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 总览驾驶舱/层面驾驶舱/教学单位驾驶舱-查询诊改报告列表-xcz
export const getTotalReportInfoList = params =>
    http({
        url: '/v1/pc/api/dashboard/getTotalReportInfoList',
        method: 'get',
        params
    });

    // 1.16 教研室/班主任驾驶舱-预警监控分页
export const getTeacherQualityDataLimit = params =>
http({
    url: '/v1/pc/api/dashboard/getTeacherQualityDataLimit',
    method: 'get',
    params
});
// 1.12-1 总览驾驶舱/层面驾驶舱/教学单位驾驶舱-标准管理导出-lyl
export const getStandardManagementExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getStandardManagementExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 1.16-1 总览驾驶舱/层面驾驶舱-预警监控导出-lyl
export const getQualityDataLimitExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getQualityDataLimitExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 1.14-1 总览驾驶舱/层面驾驶舱-数据采集导出-lyl
export const getDataCollectionLimitExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getDataCollectionLimitExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 总览驾驶舱-查询诊改报告列表导出-xcz
export const getTotalReportInfoListExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getTotalReportInfoListExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 1.16-3 教研室/班主任驾驶舱-预警监控分页-预警监控导出-ly
export const getTeacherQualityDataLimitExport = params =>
http({
    url: '/v1/pc/api/dashboard/getTeacherQualityDataLimitExport',
    method: 'get',
    params,
    responseType: 'blob'
});
// 总览驾驶舱-查询诊改报告统计图-xcz
export const getTotalReportInfoEChart = params =>
    http({
        url: '/v1/pc/api/dashboard/getTotalReportInfoEChart',
        method: 'get',
        params
    });

// 查询质控点数量-xcz
export const getPointInfoCount = params =>
    http({
        url: '/v1/pc/api/dashboard/getPointInfoCount',
        method: 'get',
        params
    });

// 查询条件-所属学院列表-xcz
export const getCollegeList = params =>
    http({
        url: '/v1/pc/api/dashboard/getCollegeList',
        method: 'get',
        params
    });

// 查询条件-教研室列表-xcz
export const getTeachingResearchList = params =>
    http({
        url: '/v1/pc/api/dashboard/getTeachingResearchList',
        method: 'get',
        params
    });

// 查询条件-班级列表-xcz
export const getClassList = params =>
    http({
        url: '/v1/pc/api/dashboard/getClassList',
        method: 'get',
        params
    });

// 查询条件-学生/教师列表列表-xcz
export const getStudentTeacherList = params =>
    http({
        url: '/v1/pc/api/dashboard/getStudentTeacherList',
        method: 'get',
        params
    });

// 教研室驾驶舱/班主任驾驶舱-查询诊改报告列表-xcz
export const getReportInfoList = params =>
    http({
        url: '/v1/pc/api/dashboard/getReportInfoList',
        method: 'get',
        params
    });

// 1.10 二级模板管理-查询列表导出-lyl
export const getPagingQueryExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getPagingQueryExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 班主任驾驶舱-查询诊改报告列表导出-xcz
export const getReportInfoListExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getReportInfoListExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 教研室驾驶舱-查询诊改报告列表导出-xcz
export const getTeacherReportInfoListExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getTeacherReportInfoListExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 教研室驾驶舱/班主任驾驶舱-查询预警监控列表-xcz
export const getWarningInfoList = params =>
    http({
        url: '/v1/pc/api/dashboard/getWarningInfoList',
        method: 'get',
        params
    });

// 教研室驾驶舱/班主任驾驶舱-查询进度监控列表-xcz
export const getPointSpeedInfoList = params =>
    http({
        url: '/v1/pc/api/dashboard/getPointSpeedInfoList',
        method: 'get',
        params
    });

// 班主任驾驶舱-查询进度监控列表导出-xcz
export const getPointSpeedInfoListExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getPointSpeedInfoListExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 教研室驾驶舱-查询进度监控列表导出-xcz
export const getTeacherPointSpeedInfoListExport = params =>
    http({
        url: '/v1/pc/api/dashboard/getTeacherPointSpeedInfoListExport',
        method: 'get',
        params,
        responseType: 'blob'
    });

// 总览驾驶舱-一级页面统计数据
export const getTotalNum = params =>
    http({
        url: '/v1/pc/api/dashboard/getTotalNum',
        method: 'get',
        params
    });

// 1.11 二级标准管理各层面标准值
export const getStandardManagement = params =>
    http({
        url: '/v1/pc/api/dashboard/getStandardManagement',
        method: 'get',
        params
    });

// 1.12 二级标准管理各机构标准值
export const getOrgStandardManagement = params =>
    http({
        url: '/v1/pc/api/dashboard/getOrgStandardManagement',
        method: 'get',
        params
    });

// 1.13 二级数据采集
export const getDataCollection = params =>
    http({
        url: '/v1/pc/api/dashboard/getDataCollection',
        method: 'get',
        params
    });

// 1.14 二级标数据采集分页
export const getDataCollectionLimit = params =>
    http({
        url: '/v1/pc/api/dashboard/getDataCollectionLimit',
        method: 'get',
        params
    });

// 1.15 二级预警监控
export const getQualityData = params =>
    http({
        url: '/v1/pc/api/dashboard/getQualityData',
        method: 'get',
        params
    });

// 1.16 总览驾驶舱/层面驾驶舱/教学单位驾驶舱-预警监控分页
export const getQualityDataLimit = params =>
    http({
        url: '/v1/pc/api/dashboard/getQualityDataLimit',
        method: 'get',
        params
    });

// rectificationRange : 整改适用范围表相关操作接口
// 1.03 查询所有
export const queryAll = params =>
    http({
        url: '/v1/pc/api/rectificationRange/queryAll',
        method: 'get',
        params
    });
